<template>
    <!-- 面包屑 -->
    <div class="bread-container">
        <el-breadcrumb separator=">">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: `/category/${categoryInfo.parentId}` }">{{ categoryInfo.parentName }}
            </el-breadcrumb-item>
            <el-breadcrumb-item>{{ categoryInfo.name }}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script setup>

defineProps({
    categoryInfo: {
        type: Object,
        default: {}
    },
})

</script>

<style scoped lang="scss">
.bread-container {
    padding: 25px 0;
    color: #666;
}
</style>
